package com.usooft.metaTalent.core.enums;

/**
 * 下载模板枚举
 */
public enum TemplateEnums {

    Enterprise(2, "企业模板", "temp/template2.xlsx");

    private Integer code;
    private String fileName;
    private String filePath;


    TemplateEnums(Integer code, String fileName, String filePath) {
        this.code = code;
        this.fileName = fileName;
        this.filePath = filePath;
    }

    public static TemplateEnums getByCode(String code) {
        if (null == code) {
            return null;
        }
        for (TemplateEnums temp : TemplateEnums.values()) {
            if (temp.getCode().compareTo(Integer.valueOf(code)) == 0) {
                return temp;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}
